﻿using AJWPFAdmin.Modules.Common.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;
using AJWPFAdmin.Modules.Common.ViewModels;
using AJWPFAdmin.Core.Components.AJFilePicker.ViewModels;
using AJWPFAdmin.Core.Components.Views;
using AJWPFAdmin.Core.Components.ViewModels;

namespace AJWPFAdmin.Modules.Common
{
    public class CommonModule : IModule
    {
        public void OnInitialized(IContainerProvider containerProvider)
        {

        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterDialogWindow<DialogWindow>();
            containerRegistry.RegisterDialog<AJCommonDialog, AJCommonDialogViewModel>();
            containerRegistry.RegisterDialog<DatabaseConfigDialog, DatabaseConfigDialogViewModel>();
            containerRegistry.RegisterDialog<ImportExcelDialog, ImportExcelDialogViewModel>();
            containerRegistry.RegisterDialog<ImageShowCaseDialog, ImageShowCaseDialogViewModel>();
            containerRegistry.RegisterDialog<ImagePreviewer, ImagePreviewerViewModel>();
            containerRegistry.RegisterDialog<USBCameraPreviewer, USBCameraPreviewerViewModel>();
            containerRegistry.RegisterDialog<PromptDialog, PromptDialogViewModel>();
            containerRegistry.RegisterDialog<AuthorizeDialog, AuthorizeDialogViewModel>();
            
        }
    }
}